package com.cd.sendRequest.jpa.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Description:用于记录抖音粉丝活跃程度
 * @Author: lqq
 * @Date: 2020/1/17 11:04
 */
@Data
@Entity
@Table(name = "db_dy_follower_active_data",
        indexes = {
                @Index(name = "idx_user_id", columnList = "user_id") // 添加索引优化查询性能
        })
@NoArgsConstructor
@AllArgsConstructor
public class DYFollowerActiveData {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    //private String avatar;//头像

    @Column(name = "follow_status", columnDefinition = "TINYINT(1) DEFAULT 0")
    private Integer follow_status;//0为单向关注你 1为互关

    @Column(name = "nick_name",length = 50, columnDefinition = "VARCHAR(50)")
    private String nickname;//昵称

    @Column(name = "score", columnDefinition = "INT(11) DEFAULT 0")
    private Integer score;//互动分数

//    @Column(name = "secret", columnDefinition = "TINYINT(1) DEFAULT 0")
//    private Boolean secret;//基本都是false

    //private String signature;//简介
    @Column(name = "user_id" ,length = 100,columnDefinition = "VARCHAR(100)")//长度为66或者65
    private String user_id;//用户id 可能为唯一id @ifZt7rdPQUj7ss1G7bPvvc92oCmVZSv+LqkuOZBdvJ3bzWcMkITcoaFOl6LiPz5j

    @Column(name = "record_time", length = 10, columnDefinition = "VARCHAR(10)")
    private String recordTime; //格式2025-01-01

    @Column(name = "owner",length = 20, columnDefinition = "VARCHAR(20)")
    private String owner;

    //owner_id
    @Column(name = "owner_id",length = 8,columnDefinition = "BIGINT(8)")
    private Long ownerId;
}
